package com.example.android.network.service;

import com.example.android.bean.Login;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface UserService {
    @POST("userservice/tbUserBasis/updateUserBasis")
    Flowable<Boolean> setPersonalData(@Body RequestBody body, @Header("token")String token);

    @GET("userservice/tbUserBasis/getUserBasis/{userId}")
    Flowable<List<Login.UserInfoDTO>> getUserBasisById(@Path("userId")int userId, @Header("token")String token);
}
